import request from '@/utils/request'

export function pageRequest(data) {
  return request({
    url: '/api/product/spu/page',
    method: 'post',
    data
  })
}

export function systemParamByMallServiceKeyRequest() {
  return request({
    url: '/api/systemParam/systemParamByMallServiceKey',
    method: 'get'
  })
}

export function addRequest(data) {
  return request({
    url: '/api/product/spu/add',
    method: 'post',
    data
  })
}


export function detailRequest(spuId) {
  return request({
    url: '/api/product/spu/detail/'+spuId,
    method: 'get',

  })
}
export function delRequest(id) {
  return request({
    url: '/api/product/spu/delete/'+id,
    method: 'get',
  })
}


